package com.ruoyu.cloud.ai.chat.controller;

import com.ruoyu.cloud.ai.chat.service.BookingTools;
import com.ruoyu.cloud.ai.chat.service.FlightBookingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RequestMapping("/api/")
@RestController
public class BookingController {

    private final FlightBookingService flightBookingService;

    public BookingController(FlightBookingService flightBookingService){
        this.flightBookingService = flightBookingService;
    }


    @RequestMapping("getBookings")
    public List<BookingTools.BookingDetails> getBookings() {
        return flightBookingService.getBookings();
    }
}
